package com.jstyle.beatecg.model;

import com.amap.api.location.AMapLocation;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Keep;
import org.greenrobot.greendao.annotation.Transient;

import java.util.ArrayList;
import java.util.List;
import org.greenrobot.greendao.annotation.Generated;

/**
 * 用于记录一条轨迹，包括起点、终点、轨迹中间点、距离、耗时、平均速度、时间
 * 
 * @author
 * 
 */
@Entity
public class PathRecord {
	@Transient
	private AMapLocation mStartPoint;
	@Transient
	private AMapLocation mEndPoint;
	@Transient
	private List<AMapLocation> mPathLinePoints = new ArrayList<AMapLocation>();
	private String mDistance;
	private String mDuration;
	private String mAveragespeed;
	private String mDate;
	String pathline;
	String stratpoint;
	String endpoint;
	String calString;//设备回来的卡路里
	String speedListString;
	String heartListString;
	String distanceBeat;//心率带出来的距离
	String type;//类型



	@Id(autoincrement = true)
	Long mId;
	@Keep
	public PathRecord(String mDistance, String mDuration, String mAveragespeed,
			String mDate, String pathline, String stratpoint, String endpoint,
			String calString, String speedListString, String heartListString,
			String distanceBeat,String type, Long mId) {
		this.mDistance = mDistance;
		this.mDuration = mDuration;
		this.mAveragespeed = mAveragespeed;
		this.mDate = mDate;
		this.pathline = pathline;
		this.stratpoint = stratpoint;
		this.endpoint = endpoint;
		this.calString = calString;
		this.speedListString = speedListString;
		this.heartListString = heartListString;
		this.distanceBeat = distanceBeat;
		this.type = type;
		this.mId = mId;
	}
	@Generated(hash = 1812181484)
	public PathRecord() {
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	public String getMDistance() {
					return this.mDistance;
	}
	public void setMDistance(String mDistance) {
					this.mDistance = mDistance;
	}
	public String getMDuration() {
					return this.mDuration;
	}
	public void setMDuration(String mDuration) {
					this.mDuration = mDuration;
	}
	public String getMAveragespeed() {
					return this.mAveragespeed;
	}
	public void setMAveragespeed(String mAveragespeed) {
					this.mAveragespeed = mAveragespeed;
	}
	public String getMDate() {
					return this.mDate;
	}
	public void setMDate(String mDate) {
					this.mDate = mDate;
	}
	public String getPathline() {
					return this.pathline;
	}
	public void setPathline(String pathline) {
					this.pathline = pathline;
	}
	public String getStratpoint() {
					return this.stratpoint;
	}
	public void setStratpoint(String stratpoint) {
					this.stratpoint = stratpoint;
	}
	public String getEndpoint() {
					return this.endpoint;
	}
	public void setEndpoint(String endpoint) {
					this.endpoint = endpoint;
	}
	public Long getMId() {
					return this.mId;
	}
	public void setMId(Long mId) {
					this.mId = mId;
	}

	public AMapLocation getmStartPoint() {
		return mStartPoint;
	}

	public void setmStartPoint(AMapLocation mStartPoint) {
		this.mStartPoint = mStartPoint;
	}

	public AMapLocation getmEndPoint() {
		return mEndPoint;
	}

	public void setmEndPoint(AMapLocation mEndPoint) {
		this.mEndPoint = mEndPoint;
	}

	public List<AMapLocation> getmPathLinePoints() {
		return mPathLinePoints;
	}

	public void setmPathLinePoints(List<AMapLocation> mPathLinePoints) {
		this.mPathLinePoints = mPathLinePoints;
	}
	public void addPoint(AMapLocation point) {
		mPathLinePoints.add(point);
	}
	public String getCalString() {
		return this.calString;
	}
	public void setCalString(String calString) {
		this.calString = calString;
	}
	public String getSpeedListString() {
		return this.speedListString;
	}
	public void setSpeedListString(String speedListString) {
		this.speedListString = speedListString;
	}
	public String getHeartListString() {
		return this.heartListString;
	}
	public void setHeartListString(String heartListString) {
		this.heartListString = heartListString;
	}
	public String getDistanceBeat() {
		return this.distanceBeat;
	}
	public void setDistanceBeat(String distanceBeat) {
		this.distanceBeat = distanceBeat;
	}
}
